<?php
	if(isPost()){
    	$db=getDB();
        if($db->insertTable('t_css_name',$_POST)){
        }
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="base.css" rel="stylesheet" type="text/css" />
</head>
<body>

<form action="?ac=cssfile" method="post">
css模板名称：<input name="Fname" type="text" />
描述:
<textarea name="Fdesc"></textarea>
<input name="" type="submit" />
</form>
<form action="?ac=zone" method="post">
	<table  border="0" cellspacing="1" cellpadding="1">
  <tr class="trheader">
    <td>碎片名字</td>
    <td>碎片的class</td>
    <td>删除</td>
  </tr>
  <?php
  	$db = getDB();
    $list = $db->get_results("SELECT * FROM t_css_name");
    if($list){
    	foreach($list AS $row){
        	echo sprintf("<tr><td><a href='?ac=csscontent&cfid=%d' >%s</a></td><td>%s</td><td>%s</td></tr>",$row['Fid'],$row['Fname'],$row['Fdesc'],$row['Fid']);
        }
    }
  ?>
        </table>

</form>
</body>
</html>
